<template>
  <div class="wait-wrap">
    <div class="wait">
      
    </div>
    <p class="wait-text">{{text}}</p>
  </div>
</template>

<script setup lang="ts">
  const { text } = defineProps({
    text: String
  });
</script>

<style scoped>
  /* 给wait加上旋转动画 */
.wait-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
}
.wait {
  height: 200px;
  width: 200px;
  background: url("../../assets/icons/loading.gif") no-repeat center center;
  background-size: 100%;
  /* animation: rotate 2s linear infinite !important; */
}
/* @keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
} */
  .wait-text {
    margin-top: 20px;
  }
</style>